package admrouter

import (
	"github.com/gin-gonic/gin"
	"yundian/internel/app/handlers/pcl/admin/kaprojecthandler"
	"yundian/internel/app/middlewares"
	"yundian/internel/pkg/dingo"
)

func InitKaProjectRouter() dingo.ApiRouter {
	return func(g *gin.RouterGroup) {
		{

			k := g.Group("kaproject")

			k.Use(middlewares.JwtAuthMiddleware)

			k.GET("", kaprojecthandler.HandleGetKaProjectList)   // 获取网点列表
			k.POST("", kaprojecthandler.HandleInsertKaProject)   // 新增网点
			k.PUT("", kaprojecthandler.HandleUpdateKaProject)    // 更新网点
			k.DELETE("", kaprojecthandler.HandleDeleteKaProject) // 删除网点

			g.GET("allproject", kaprojecthandler.HandleGetAllProjectList)
		}
	}
}
